package order.service.pojo;
//请求类
public class Stock {
    private String name = "ABC";
    private int quantity = 10;

    public void buy(){
        quantity+=1;
        System.out.println("已购买库存："+quantity);
    }

    public void sell(){
        quantity-=1;
        System.out.println("已卖出一件库存:"+quantity);
    }

}
